	// TimeInput 时间输入
	var TimeInput=function(selector,options){
		this.selector=selector;
		//this.init();
	}
	TimeInput.prototype=new Control();
	TimeInput.prototype.init=function(){
		//$(this.selector).prop("type","hidden");
		$(this.selector).hide();
		this.create();
	}
	TimeInput.prototype.create=function(){
		var num="";
		var options="";
		for(var i=0;i<24;i++){
			if(i<10){
				num="0"+i
			}else{
				num=i;
			}
			options+="<option value=\""+num+"\">"+num+"</option>"
		}
		this.hourSelector=$("<select>"+options+"</select>");
		
		var options="";
		for(var i=0;i<60;i++){
			if(i<10){
				num="0"+i
			}else{
				num=i;
			}
			options+="<option value=\""+num+"\">"+num+"</option>"
		}
		this.minuteSelector=$("<select>"+options+"</select>")
		
		$(this.selector).after(this.minuteSelector)
		$(this.selector).after(" : ");
		$(this.selector).after(this.hourSelector)
		
		var self=this;
		$(this.hourSelector).bind("change",function(event){
			self.update();
		})
		$(this.minuteSelector).bind("change",function(event){
			self.update();
		})
	}
	TimeInput.prototype.update=function(){
		var hour=$(this.hourSelector).val();
		var minute=$(this.minuteSelector).val();
		var time=hour+":"+minute+":00";
		console.log(time);
		$(this.selector).val(time);
	}
	
	HTMLTurbo.control.TimeInput=TimeInput;